<?php
namespace app\index\validate;
use think\Validate;
class Agent extends Validate{
	protected $rule = [
		'name'     => 'require|min:1|max:10',
		'shop'     => 'require|min:1|max:20',
        'iphone'   => 'require|min:3|max:15',
        'email'    => 'require|email',
        'location' => 'require|max:50',
        'region'   => 'require|max:50',
        'prefix'   => 'require|max:5' 
	];

	protected $scene = [
		'add' => ['name','shop','iphone','email','location','region','prefix']
	];
}